package com.algorithms.hash;

public class HashItem<T> {
	public static final int INVALID_KEY = -1;
	
	private int key;
	private T data;

	public int getKey() {
		return key;
	}
	public void setKey(int key) {
		this.key = key;
	}

	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	
	public HashItem(){
		this.data = null;
	}

	public HashItem(int key){
		this.key = key;
		this.data = null;
	}
	
	public HashItem(int key, T data){
		this.key = key;
		this.data = data;
	}
}
